package com.platform.sys.modular.syncdata.param;

import lombok.Data;
import com.platform.core.pojo.base.param.BaseParam;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
* 要操作其他库的元数据字段配置参数类
 *
 * @author gyp
 * @date 2022-12-04 20:43:04
*/
@Data
public class SyncDataSourceParam extends BaseParam {

    /**
     *
     */
    @NotNull(message = "不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空，请检查code参数", groups = {add.class, edit.class})
    private String code;

    /**
     * 要操作的字段
     */
    @NotBlank(message = "要操作的字段不能为空，请检查operationField参数", groups = {add.class, edit.class})
    private String operationField;

    /**
     * 要查询字段
     */
    @NotBlank(message = "要查询字段不能为空，请检查queryField参数", groups = {add.class, edit.class})
    private String queryField;

    /**
     * 数据状态
     */
    @NotNull(message = "数据状态不能为空，请检查status参数", groups = {add.class, edit.class})
    private String status;

}
